package com.qf.huigou.service.impl;

import com.qf.huigou.mapper.BrandMapper;
import com.qf.huigou.pojo.Brand;
import com.qf.huigou.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.8.0_131
 * @Author WangYiZhu
 * @Email 2641956765@qq.com
 * @Time 2022/12/08 14:33
 */
@Service
public class BrandServiceImpl implements BrandService {

    @Autowired
    private BrandMapper brandMapper;


    @Override
    public List<Brand> findBrandToCategoryId(int categoryId) {
        return  brandMapper.selectBrandIdListToCategoryId(categoryId);
    }
}
